#!/usr/bin/python

import sys
from Picasa import Picasa
#import gdata.docs.service
import gdata.photos.service

def test( email, passwd):
# Create a client class which will make HTTP requests with Google Picasa server.
    client = gdata.photos.service.PhotosService()
# Authenticate using your Google Docs email address and password.
    client.ClientLogin(email, passwd)

    albums = client.GetUserFeed().entry
    for album in albums:
        print album.title
        pass
    return


if __name__ == '__main__':
    test( sys.argv[1], sys.argv[2] )
